package com.zj.HJ;

import java.util.Scanner;

public class HJ11 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        System.out.println(getRes(num));
    }

    public static String getRes(String num) {
        return new StringBuilder(num).reverse().toString();
    }


}
